<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>Blank Page - Ace Admin</title> [#include
		"/admin/common/commonurl.html"]

		<link rel="stylesheet"
		href="${siteurl}assets/plugs/kindeditor/themes/default/default.css" />
		<script charset="utf-8"
		src="${siteurl}assets/plugs/kindeditor/kindeditor-all-min.js"></script>
		<script charset="utf-8"
		src="${siteurl}assets/plugs/kindeditor/lang/zh_CN.js"></script>
		<link rel="stylesheet"
		href="${siteurl}assets/plugs/tagsinput/jquery.tagsinput.css">

		<link rel="stylesheet" type="text/css" href="${siteurl}assets/plugs/webuploader/webuploader.css">

	</head>

	<body class="no-skin">
		<div id="navbar" class="navbar navbar-default">
			<script type="text/javascript">
				try {
					ace.settings.check('navbar', 'fixed')
				} catch (e) {
				}
			</script>

			[#include "/admin/common/navbar.html"]

			<!-- /.navbar-container -->
		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try {
					ace.settings.check('main-container', 'fixed')
				} catch (e) {
				}
			</script>

			<div id="sidebar" class="sidebar                  responsive">
				<script type="text/javascript">
					try {
						ace.settings.check('sidebar', 'fixed')
					} catch (e) {
					}
				</script>
				[#include "/admin/common/shortcuts.html"]
				<!-- /.sidebar-shortcuts -->

				<!-- .nav-list -->
				[#include "/admin/common/commonmenu.html"]
				<ul class="nav nav-list">
					[@menustag id=1] [#list list as item]
					[@menu item "1,49,50"] [/@menu] [/#list] [/@menustag]
				</ul>
				<!-- /.nav-list -->

				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i class="ace-icon fa fa-angle-double-left"
					data-icon1="ace-icon fa fa-angle-double-left"
					data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>

				<script type="text/javascript">
					try {
						ace.settings.check('sidebar', 'collapsed')
					} catch (e) {
					}

					function updatering() {
						$("#processinfos").slideDown();
						$.get("${siteurl}ring/downring.htm", function() {
							$("#processinfos").slideUp();
						});
					}
				</script>
			</div>

			<div class="main-content">
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try {
							ace.settings.check('breadcrumbs', 'fixed')
						} catch (e) {
						}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i><a href="#">首页</a>
						</li>

						<li class="active">
							添加文章
						</li>
					</ul>
					<!-- /.breadcrumb -->

					<div class="nav-search" id="nav-search">
						<form class="form-search">
							<span class="input-icon">
								<input type="text"
								placeholder="Search ..." class="nav-search-input"
								id="nav-search-input" autocomplete="off" />
								<i
								class="ace-icon fa fa-search nav-search-icon"></i> </span>
						</form>
					</div>
					<!-- /.nav-search -->
				</div>

				<div class="page-content">
					[#include "/admin/common/page.html"] [#include
					"/admin/common/settings.html"]
					<div class="row">
						<div class="col-xs-12">

							<form role="form" method="post" class="form-horizontal"
							action="${siteurl}admin/article/model_add.htm">

								<input type="hidden" name="img" value=""  id="uploaderthumbpath">

								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 名称</label>

									<div class="col-sm-9">
										<input type="text" name="title" class="col-xs-10 col-sm-10"
										placeholder="文章名称" id="form-field-1">
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 分类</label>
									<div id="uploaderthumber"  class="col-sm-9">
										<div style="max-width: 100px;" id="fileListuploaderthumb" class="uploader-list">

										</div>
										<div id="uploaderthumb">
											选择图片
										</div>
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 分类</label>

									<div class="col-sm-9">
										<select name="catalog.id" class="col-xs-10 col-sm-10">
											[#if list??]
											[#list list as item]
											<option value="${item.id}">${item.name!""}</option>
											[/#list]
											[/#if]
										</select>
									</div>
								</div>
								<div class="form-group">
									<label
									class="col-sm-3 control-label no-padding-right">摘要</label>

									<div class="col-sm-9">
										<textarea style="height: 60px;" type="text" name="introduction"
										class="col-xs-10 col-sm-10" placeholder=" 摘要"
										></textarea>
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right">描述</label>

									<div class="col-sm-9">
										<textarea style="height: 500px;" type="text" name="contents"
										class="col-xs-10 col-sm-10" placeholder=" 描述"
										id="form-field-1"></textarea>
									</div>
								</div>

								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 标签</label>

									<div class="col-sm-9">
										<input id="tag" type="text" name="tag"
										class="col-xs-10 col-sm-10" placeholder="标签" id="form-field-1">
									</div>
								</div>
								<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button type="submit" class="btn btn-info">
											<i class="ace-icon fa fa-check bigger-110"></i> 保存
										</button>

										&nbsp; &nbsp; &nbsp;
										<button type="reset" class="btn">
											<i class="ace-icon fa fa-undo bigger-110"></i> 重置
										</button>
									</div>
								</div>

								<div class="hr hr-24"></div>

							</form>

						</div>
					</div>

				</div>
			</div>
			<!-- /.main-content -->

			[#include "/admin/common/footer.html"]

		</div>
		<!-- /.main-container -->

		<!-- basic scripts -->

		[#include "/admin/common/scripts.html"]

		<script type="text/javascript"
		src="${siteurl}assets/plugs/tagsinput/jquery.tagsinput.js"></script>

		<script type="text/javascript">
			var editor = KindEditor.create('textarea[name="contents"]', {
				themeType : 'simple',
				width : '680px',
				minWidth : '680px',
				uploadJson : '${siteurl}image/upmendaoimgwork.htm',
				fileManagerJson : '${siteurl}image/listimages.htm',
				allowFileManager : true
			});

			function showtext() {

			}


			$(document).ready(function() {
				$('#tag').tagsInput({
					height : '20',
					width : '577',
					defaultText : "标签"
				});

			});
		</script>

		[#include "/admin/common/imagesimple.html"]
		[@imagesimple "uploaderthumb" "fileListuploaderthumb" "uploaderthumbpath"][/@imagesimple]

	</body>
</html>
